package com.hp.system.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class IdentifyInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public IdentifyInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andColortypeIsNull() {
            addCriterion("colorType is null");
            return (Criteria) this;
        }

        public Criteria andColortypeIsNotNull() {
            addCriterion("colorType is not null");
            return (Criteria) this;
        }

        public Criteria andColortypeEqualTo(Integer value) {
            addCriterion("colorType =", value, "colortype");
            return (Criteria) this;
        }

        public Criteria andColortypeNotEqualTo(Integer value) {
            addCriterion("colorType <>", value, "colortype");
            return (Criteria) this;
        }

        public Criteria andColortypeGreaterThan(Integer value) {
            addCriterion("colorType >", value, "colortype");
            return (Criteria) this;
        }

        public Criteria andColortypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("colorType >=", value, "colortype");
            return (Criteria) this;
        }

        public Criteria andColortypeLessThan(Integer value) {
            addCriterion("colorType <", value, "colortype");
            return (Criteria) this;
        }

        public Criteria andColortypeLessThanOrEqualTo(Integer value) {
            addCriterion("colorType <=", value, "colortype");
            return (Criteria) this;
        }

        public Criteria andColortypeIn(List<Integer> values) {
            addCriterion("colorType in", values, "colortype");
            return (Criteria) this;
        }

        public Criteria andColortypeNotIn(List<Integer> values) {
            addCriterion("colorType not in", values, "colortype");
            return (Criteria) this;
        }

        public Criteria andColortypeBetween(Integer value1, Integer value2) {
            addCriterion("colorType between", value1, value2, "colortype");
            return (Criteria) this;
        }

        public Criteria andColortypeNotBetween(Integer value1, Integer value2) {
            addCriterion("colorType not between", value1, value2, "colortype");
            return (Criteria) this;
        }

        public Criteria andLicenseIsNull() {
            addCriterion("license is null");
            return (Criteria) this;
        }

        public Criteria andLicenseIsNotNull() {
            addCriterion("license is not null");
            return (Criteria) this;
        }

        public Criteria andLicenseEqualTo(String value) {
            addCriterion("license =", value, "license");
            return (Criteria) this;
        }

        public Criteria andLicenseNotEqualTo(String value) {
            addCriterion("license <>", value, "license");
            return (Criteria) this;
        }

        public Criteria andLicenseGreaterThan(String value) {
            addCriterion("license >", value, "license");
            return (Criteria) this;
        }

        public Criteria andLicenseGreaterThanOrEqualTo(String value) {
            addCriterion("license >=", value, "license");
            return (Criteria) this;
        }

        public Criteria andLicenseLessThan(String value) {
            addCriterion("license <", value, "license");
            return (Criteria) this;
        }

        public Criteria andLicenseLessThanOrEqualTo(String value) {
            addCriterion("license <=", value, "license");
            return (Criteria) this;
        }

        public Criteria andLicenseLike(String value) {
            addCriterion("license like", value, "license");
            return (Criteria) this;
        }

        public Criteria andLicenseNotLike(String value) {
            addCriterion("license not like", value, "license");
            return (Criteria) this;
        }

        public Criteria andLicenseIn(List<String> values) {
            addCriterion("license in", values, "license");
            return (Criteria) this;
        }

        public Criteria andLicenseNotIn(List<String> values) {
            addCriterion("license not in", values, "license");
            return (Criteria) this;
        }

        public Criteria andLicenseBetween(String value1, String value2) {
            addCriterion("license between", value1, value2, "license");
            return (Criteria) this;
        }

        public Criteria andLicenseNotBetween(String value1, String value2) {
            addCriterion("license not between", value1, value2, "license");
            return (Criteria) this;
        }

        public Criteria andIdentifydateIsNull() {
            addCriterion("identifyDate is null");
            return (Criteria) this;
        }

        public Criteria andIdentifydateIsNotNull() {
            addCriterion("identifyDate is not null");
            return (Criteria) this;
        }

        public Criteria andIdentifydateEqualTo(Date value) {
            addCriterion("identifyDate =", value, "identifydate");
            return (Criteria) this;
        }

        public Criteria andIdentifydateNotEqualTo(Date value) {
            addCriterion("identifyDate <>", value, "identifydate");
            return (Criteria) this;
        }

        public Criteria andIdentifydateGreaterThan(Date value) {
            addCriterion("identifyDate >", value, "identifydate");
            return (Criteria) this;
        }

        public Criteria andIdentifydateGreaterThanOrEqualTo(Date value) {
            addCriterion("identifyDate >=", value, "identifydate");
            return (Criteria) this;
        }

        public Criteria andIdentifydateLessThan(Date value) {
            addCriterion("identifyDate <", value, "identifydate");
            return (Criteria) this;
        }

        public Criteria andIdentifydateLessThanOrEqualTo(Date value) {
            addCriterion("identifyDate <=", value, "identifydate");
            return (Criteria) this;
        }

        public Criteria andIdentifydateIn(List<Date> values) {
            addCriterion("identifyDate in", values, "identifydate");
            return (Criteria) this;
        }

        public Criteria andIdentifydateNotIn(List<Date> values) {
            addCriterion("identifyDate not in", values, "identifydate");
            return (Criteria) this;
        }

        public Criteria andIdentifydateBetween(Date value1, Date value2) {
            addCriterion("identifyDate between", value1, value2, "identifydate");
            return (Criteria) this;
        }

        public Criteria andIdentifydateNotBetween(Date value1, Date value2) {
            addCriterion("identifyDate not between", value1, value2, "identifydate");
            return (Criteria) this;
        }

        public Criteria andSerialnoIsNull() {
            addCriterion("serialno is null");
            return (Criteria) this;
        }

        public Criteria andSerialnoIsNotNull() {
            addCriterion("serialno is not null");
            return (Criteria) this;
        }

        public Criteria andSerialnoEqualTo(String value) {
            addCriterion("serialno =", value, "serialno");
            return (Criteria) this;
        }

        public Criteria andSerialnoNotEqualTo(String value) {
            addCriterion("serialno <>", value, "serialno");
            return (Criteria) this;
        }

        public Criteria andSerialnoGreaterThan(String value) {
            addCriterion("serialno >", value, "serialno");
            return (Criteria) this;
        }

        public Criteria andSerialnoGreaterThanOrEqualTo(String value) {
            addCriterion("serialno >=", value, "serialno");
            return (Criteria) this;
        }

        public Criteria andSerialnoLessThan(String value) {
            addCriterion("serialno <", value, "serialno");
            return (Criteria) this;
        }

        public Criteria andSerialnoLessThanOrEqualTo(String value) {
            addCriterion("serialno <=", value, "serialno");
            return (Criteria) this;
        }

        public Criteria andSerialnoLike(String value) {
            addCriterion("serialno like", value, "serialno");
            return (Criteria) this;
        }

        public Criteria andSerialnoNotLike(String value) {
            addCriterion("serialno not like", value, "serialno");
            return (Criteria) this;
        }

        public Criteria andSerialnoIn(List<String> values) {
            addCriterion("serialno in", values, "serialno");
            return (Criteria) this;
        }

        public Criteria andSerialnoNotIn(List<String> values) {
            addCriterion("serialno not in", values, "serialno");
            return (Criteria) this;
        }

        public Criteria andSerialnoBetween(String value1, String value2) {
            addCriterion("serialno between", value1, value2, "serialno");
            return (Criteria) this;
        }

        public Criteria andSerialnoNotBetween(String value1, String value2) {
            addCriterion("serialno not between", value1, value2, "serialno");
            return (Criteria) this;
        }

        public Criteria andIsdealIsNull() {
            addCriterion("isdeal is null");
            return (Criteria) this;
        }

        public Criteria andIsdealIsNotNull() {
            addCriterion("isdeal is not null");
            return (Criteria) this;
        }

        public Criteria andIsdealEqualTo(Byte value) {
            addCriterion("isdeal =", value, "isdeal");
            return (Criteria) this;
        }

        public Criteria andIsdealNotEqualTo(Byte value) {
            addCriterion("isdeal <>", value, "isdeal");
            return (Criteria) this;
        }

        public Criteria andIsdealGreaterThan(Byte value) {
            addCriterion("isdeal >", value, "isdeal");
            return (Criteria) this;
        }

        public Criteria andIsdealGreaterThanOrEqualTo(Byte value) {
            addCriterion("isdeal >=", value, "isdeal");
            return (Criteria) this;
        }

        public Criteria andIsdealLessThan(Byte value) {
            addCriterion("isdeal <", value, "isdeal");
            return (Criteria) this;
        }

        public Criteria andIsdealLessThanOrEqualTo(Byte value) {
            addCriterion("isdeal <=", value, "isdeal");
            return (Criteria) this;
        }

        public Criteria andIsdealIn(List<Byte> values) {
            addCriterion("isdeal in", values, "isdeal");
            return (Criteria) this;
        }

        public Criteria andIsdealNotIn(List<Byte> values) {
            addCriterion("isdeal not in", values, "isdeal");
            return (Criteria) this;
        }

        public Criteria andIsdealBetween(Byte value1, Byte value2) {
            addCriterion("isdeal between", value1, value2, "isdeal");
            return (Criteria) this;
        }

        public Criteria andIsdealNotBetween(Byte value1, Byte value2) {
            addCriterion("isdeal not between", value1, value2, "isdeal");
            return (Criteria) this;
        }

        public Criteria andDealtimeIsNull() {
            addCriterion("dealTime is null");
            return (Criteria) this;
        }

        public Criteria andDealtimeIsNotNull() {
            addCriterion("dealTime is not null");
            return (Criteria) this;
        }

        public Criteria andDealtimeEqualTo(Date value) {
            addCriterion("dealTime =", value, "dealtime");
            return (Criteria) this;
        }

        public Criteria andDealtimeNotEqualTo(Date value) {
            addCriterion("dealTime <>", value, "dealtime");
            return (Criteria) this;
        }

        public Criteria andDealtimeGreaterThan(Date value) {
            addCriterion("dealTime >", value, "dealtime");
            return (Criteria) this;
        }

        public Criteria andDealtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("dealTime >=", value, "dealtime");
            return (Criteria) this;
        }

        public Criteria andDealtimeLessThan(Date value) {
            addCriterion("dealTime <", value, "dealtime");
            return (Criteria) this;
        }

        public Criteria andDealtimeLessThanOrEqualTo(Date value) {
            addCriterion("dealTime <=", value, "dealtime");
            return (Criteria) this;
        }

        public Criteria andDealtimeIn(List<Date> values) {
            addCriterion("dealTime in", values, "dealtime");
            return (Criteria) this;
        }

        public Criteria andDealtimeNotIn(List<Date> values) {
            addCriterion("dealTime not in", values, "dealtime");
            return (Criteria) this;
        }

        public Criteria andDealtimeBetween(Date value1, Date value2) {
            addCriterion("dealTime between", value1, value2, "dealtime");
            return (Criteria) this;
        }

        public Criteria andDealtimeNotBetween(Date value1, Date value2) {
            addCriterion("dealTime not between", value1, value2, "dealtime");
            return (Criteria) this;
        }

        public Criteria andPassidIsNull() {
            addCriterion("passid is null");
            return (Criteria) this;
        }

        public Criteria andPassidIsNotNull() {
            addCriterion("passid is not null");
            return (Criteria) this;
        }

        public Criteria andPassidEqualTo(Integer value) {
            addCriterion("passid =", value, "passid");
            return (Criteria) this;
        }

        public Criteria andPassidNotEqualTo(Integer value) {
            addCriterion("passid <>", value, "passid");
            return (Criteria) this;
        }

        public Criteria andPassidGreaterThan(Integer value) {
            addCriterion("passid >", value, "passid");
            return (Criteria) this;
        }

        public Criteria andPassidGreaterThanOrEqualTo(Integer value) {
            addCriterion("passid >=", value, "passid");
            return (Criteria) this;
        }

        public Criteria andPassidLessThan(Integer value) {
            addCriterion("passid <", value, "passid");
            return (Criteria) this;
        }

        public Criteria andPassidLessThanOrEqualTo(Integer value) {
            addCriterion("passid <=", value, "passid");
            return (Criteria) this;
        }

        public Criteria andPassidIn(List<Integer> values) {
            addCriterion("passid in", values, "passid");
            return (Criteria) this;
        }

        public Criteria andPassidNotIn(List<Integer> values) {
            addCriterion("passid not in", values, "passid");
            return (Criteria) this;
        }

        public Criteria andPassidBetween(Integer value1, Integer value2) {
            addCriterion("passid between", value1, value2, "passid");
            return (Criteria) this;
        }

        public Criteria andPassidNotBetween(Integer value1, Integer value2) {
            addCriterion("passid not between", value1, value2, "passid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
